package com.yami.shop.rights.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.rights.common.dto.ExchangeRightsDto;
import com.yami.shop.rights.common.model.ExchangeRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ExchangeRecordService extends IService<ExchangeRecord> {

    IPage<ExchangeRightsDto> pageList(PageParam<ExchangeRightsDto> page, ExchangeRightsDto vo);

    void unDeliveryExchangeExcel(ExchangeRightsDto exchangeRightsDto, HttpServletResponse response);
    ExchangeRightsDto getExchangeRecordByOrderNumber(String orderNumber, Long shopId);
    String exportExchangeExcel(MultipartFile orderExcelFile, Long shopId, List<ExchangeRightsDto> exchangeList);

    void updateStatusByPersonRightsId(String orderNumber);
}
